﻿namespace Cache.Redis
{
    public class RedisNode
    {
        private string _passWord = string.Empty;
        private int _port = 6379;

        /// <summary>
        ///     节点名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        ///     主机地址
        /// </summary>
        public string Host { get; set; }

        /// <summary>
        ///     端口号
        /// </summary>
        public int Port
        {
            get { return _port; }
            set { _port = value; }
        }

        /// <summary>
        ///     验证密码
        /// </summary>
        public string PassWord
        {
            get { return _passWord; }
            set { _passWord = value; }
        }

        /// <summary>
        ///     默认数据库
        /// </summary>
        public int DefaultDB { get; set; }
    }
}